package com.ykdl.member.kid.adapters.base;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class BaseObjectListAdapter extends BaseAdapter {
	public List<Object> mObjectList;
	public Context mContext;
	public LayoutInflater inflater;
	public BaseObjectListAdapter(Context context) {
		
		this.mContext = context;
		inflater = LayoutInflater.from(context);
		mObjectList = new ArrayList<Object>();
	}
	
	public void setData(List<Object> list){
		
	}
	
	
	@Override
	public int getCount() {
		if (mObjectList!=null&&mObjectList.size()>0) {
		return 	mObjectList.size();
		}
		return 0;
	}

	@Override
	public Object getItem(int position) {
		
		return mObjectList.get(position);
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		
		return null;
	}

}
